<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html" xml:lang="en" lang="en"
      xmlns:f="http://java.sun.com/jsf/core"
		>
<h:head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <h:outputStylesheet library="css" name="style.css"/>
    <link rel="stylesheet" type="text/css" href="../resources/css/style.css"/>
    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'></script>
    <title>#{BundleLabels.name_APP}</title>
</h:head>
<h:body>
    <div id="loginid" class="login">
        <f:view>
            <h:form
                    id="loginForm"
                    prependId="false">

                    <label for="j_username"><h:outputText value="#{BundleLabels.name_user}"/><br/>
                    </label>
	            <h:message for="j_username" styleClass="alertbox_a" fatalClass="alt_e" errorClass="alt_e"
	                       warnClass="alt_w" infoClass="alt_i"/>
	            <br/>
	            <h:inputText
                            id="j_username"
                            required="true">
                    </h:inputText>

                    <br/>
                    <br/>
	            <h:message for="j_password" styleClass="alertbox_a" fatalClass="alt_e" errorClass="alt_e"
	                       warnClass="alt_w" infoClass="alt_i"/>
	            <br/>
	            <label for="j_password"><h:outputText value="#{BundleLabels.password}"/><br/>
                    </label>
                    <h:inputSecret
                            id="j_password"
                            required="true">
                    </h:inputSecret>

                    <br/>
                    <label for="_spring_security_remember_me"> <h:outputText
                            value="#{BundleLabels.remember}"/> </label>
                    <h:selectBooleanCheckbox
                            id="_spring_security_remember_me"/>
                    <br/>
                    <br/>

                <h:outputText value="#{BundleLabels.language}"/>
                <h:selectOneMenu value="#{language.localeCode}" onchange="submit()"
                                 valueChangeListener="#{language.countryLocaleCodeChanged}">
                    <f:selectItems value="#{language.countriesInMap}"/>
                </h:selectOneMenu>
                <br/>
                <h:messages globalOnly="true" style="align-content: center" errorStyle="color: red" infoStyle="color: green"/>
                <h:commandButton
                        type="submit"
                        id="login"
                        action="#{loginBean.doLogin}"
                        value="#{BundleLabels.btn_enter}"/>
                    </h:form>
                    <li>
                        <a id="youtrack" class="nonblock nontext rounded-corners grpelem" target="_blank"
                           href="http://www.jabex.com.es/youtrack/">
                            #{BundleLabels.taskManager}
                        </a>
                    </li>
                </f:view>
        </div>
</h:body>
</html>